package com.newhonor.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newhonor.server.pojo.Role;

import java.util.List;

/**
 * @Author newhonor
 * @Date 2021/2/22 11:30
 * @Version 1.0
 **/
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 根据用户id查询角色
     *
     * @param adminId
     * @return
     */
    List<Role> getRoles(Integer adminId);
}
